<?php

namespace app\model;


use think\Model;

class OriginalPlanNodeDetailModel extends Model
{
    //交付状态（0=默认，进行中 1=已交付 2=未交付）
    const DELIVERY_STATUS_DEFAULT = 0;
    const DELIVERY_STATUS_DELIVERED = 1;
    const DELIVERY_STATUS_UNDELIVERED = 2;


    //节点类型（1=交付节点、2=完成节点）
    const NODE_TYPE_DELIVERY = 1;
    const NODE_TYPE_FINISH = 2;


    //异常结束，来源类型（0=默认无，1=延期单、2=工单、3=需求单、4=排期、5、废除、6、启动）
    const CLOSE_LINK_TYPE_DEFAULT = 0;
    const CLOSE_LINK_TYPE_DELAY = 1;
    const CLOSE_LINK_TYPE_WORK_ORDER = 2;
    const CLOSE_LINK_TYPE_NOTE = 3;
    const CLOSE_LINK_TYPE_PLAN = 4;

    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'original_plan_node_detail';

    /**
     * The primary key associated with the table.
     *
     * @var string
     */
    protected $primaryKey = 'id';

    /**
     * Indicates if the model should be timestamped.
     *
     * @var bool
     */
    public $timestamps = false;
}
